package com.ponhu.ea2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.io.Serializable;

/**
 * 货品配件附件表
 *
 * @author ${author}
 * @since 2021-10-20
 */
@Data
@Accessors(chain = true)
@TableName(value = "ph_inventory_accessory")
public class PhInventoryAccessory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 货品ID
     */
    private Long inventoryId;

    /**
     * 货品编码
     */
    private String inventoryCode;

    /**
     * 字典类型：附件-INVENTORY_ANNEX，配件-INVENTORY_ACCESSORY
     */
    private String dictType;

    /**
     * 字典项值
     */
    private Integer dictItemValue;

    /**
     * 字典项名称
     */
    private String dictItemLabel;

    /**
     * 品类ID
     */
    private Long categoryId;

    /**
     * 品牌ID
     */
    private Long brandId;

    /**
     * 价值价格
     */
    private BigDecimal cost;

}
